<%@ page import="message.LoginBean"%>
<%@ page import="java.util.ArrayList"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  	<head>
	    <base href="<%=basePath%>">
	    <title>My JSP 'index.jsp' starting page</title>
	    <meta charset="utf-8" />
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="css/index.css" />
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="css/public.css"/>
		<script type="text/javascript" src="js/jquery-1.11.0.js" charset="UTF-8"></script>	
		<script type="text/javascript" src="js/style.js" charset="UTF-8"></script>
  	</head>
  	<%
  		String name=null;
  		String id=null;
  		String password=null;
  		String className=null;
  		String message=null;
  		ArrayList login=(ArrayList)session.getAttribute("login");
  		if(login==null||login.size()==0){name="请登录";message="-1";}
  		else{
	  		for(int i=login.size()-1;i>=0;i--){
		  		LoginBean bean=(LoginBean)login.get(i);
		  		id=bean.getAccount();
		  		password=bean.getPassword();
		  		name=bean.getName();
		  		className=bean.getClassName();
		  		message=bean.getMessage();
	  		}
	  	}
  	%>
  	<body>
		<div id="head" class="gradient clear">
			<div class="fl" id="log">
				<a id="logo" href="index.jsp"></a>
			</div>
		</div>
		<div class="stepBar_warp">
			<div class="stepBar_bar">
				<div class="stepBar_stepProcess"></div>
			</div>
			<div class="stepBar_info">
				<table class="stepLayout" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="stepBar_point" id="point0">
							<a class="stepBar_stepName" href="login.jsp" title="登录/注销"><%=name%></a>
						</td>
						<td class="stepBar_point" id="point1">
							<a class="stepBar_stepName" href="personInfo.jsp?id=<%=id%>&password=<%=password%>&name=<%=name%>&className=<%=className%>">修改信息</a>
						</td>
						<td class="stepBar_point" id="point2">
							<a class="stepBar_stepName" href="personHobby.jsp?id=<%=id%>&password=<%=password%>&name=<%=name%>&className=<%=className%>">填写要求</a>
						</td>
						<td class="stepBar_point" id="point3">
							<a class="stepBar_stepName" href="testTitle.jsp?id=<%=id%>&password=<%=password%>&name=<%=name%>&className=<%=className%>">参加测试</a>
						</td>
						<td class="stepBar_point" id="point4">
							<a class="stepBar_stepName">完成</a>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<div id="foot" class="gradient">
			<input type="text" class="ipttext" id="ipttext" value="<%=message%>"/>
		</div>
	</body>
</html>
